package LanQiao;

public class Demo3 {
    public static void main(String[] args) {
        int num = 2024;
        int i = 0;
        for (; ; i++) {
            if (i * i > num) {
                break;
            }
        }
        System.out.println(i);
        System.out.println(i * i - num);
    }
}
